]> dgit.raspbian.org Git - gnome-shell.git/commit
shellEntry: Don't show "Show Password" menu if entry icon is disabled
authorRay Strode <rstrode@redhat.com>
Wed, 21 Jul 2021 18:01:48 +0000 (14:01 -0400)
committerMarge Bot <marge-bot@gnome.org>
Fri, 30 Jul 2021 14:17:07 +0000 (14:17 +0000)
commita4123887c1e129c28eb962d51c2ad05ff9e2ccfb
tree354a6c5358daec1719c917b0821cfb250dc8a8a7
parent8721c5db37c1409dbb806c915e6c077e1c4b8c6b
shellEntry: Don't show "Show Password" menu if entry icon is disabled

Right now the Show Password menu is shown unconditionally for password
entries, ignoring the org.gnome.desktop.lockdown disable-show-password
key.

StShellEntry now honors that key for its peek icon, and there's little
reason for the peek icon and the menu to ever be out of sync.

This commit forces the menu and the icon to always be in sync, and
so makes the menu lock down work automatically, too.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/687>
js/ui/shellEntry.js